<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:util="http://java.sun.com/jsf/composite/util">
	<util:label value="#{i18n.SolicitacaoCadastro_ClientePortal_NomeCompleto}" />
	<div class="grid_17">
		<p:inputText value="#{solicitacaoCadastroBean.clientePortalInstance.nomeCompleto}" 
			styleClass="width_17" disabled="#{!solicitacaoCadastroBean.flagNovoCliente}"
			rendered="#{solicitacaoCadastroBean.flagNovoCliente}" 
			required="true" requiredMessage="#{i18n.SolicitacaoCadastro_ClientePortal_Required_NomeCompleto}" />
			
		<h:inputHidden value="#{solicitacaoCadastroBean.clientePortalInstance.id}" 
			rendered="#{!solicitacaoCadastroBean.flagNovoCliente}" 
			required="true" requiredMessage="#{i18n.SolicitacaoCadastro_ClientePortal_Required_NomeCompleto}" />
		<!-- SE FOR CLIENTE EXISTENTE -->
		<p:inputText value="#{solicitacaoCadastroBean.clientePortalInstance.nomeCompleto}" 
			styleClass="width_16" disabled="#{!solicitacaoCadastroBean.flagNovoCliente}"
			rendered="#{!solicitacaoCadastroBean.flagNovoCliente}" /> 
		<p:commandButton onclick="dialogoBuscaClientePortal.show();" icon="ui-icon ui-icon-search" 
			type="button" rendered="#{!solicitacaoCadastroBean.flagNovoCliente}" style="margin-left:6px"/>
	</div>
	
	<util:label grid="9" value="#{i18n.SolicitacaoCadastro_ClientePortal_NomeCurto}" />
	<util:label grid="7" value="#{i18n.SolicitacaoCadastro_ClientePortal_DataCadastro}" />
	<div class="grid_9">
		<p:inputText value="#{solicitacaoCadastroBean.clientePortalInstance.nomeCurto}" 
			styleClass="width_8" disabled="#{!solicitacaoCadastroBean.flagNovoCliente}" 
			required="true" requiredMessage="#{i18n.SolicitacaoCadastro_ClientePortal_Required_NomeCurto}" />
	</div>
	<div class="grid_7">
		<p:inputText value="#{solicitacaoCadastroBean.clientePortalInstance.dataCadastro}" 
			styleClass="width_8" disabled="true">
			<f:convertDateTime pattern="dd/MM/yyyy"/>
		</p:inputText>
	</div>
	<util:label value="#{i18n.SolicitacaoCadastro_ClientePortal_Observacoes}" />
	<div class="grid_18">
		<p:inputTextarea value="#{solicitacaoCadastroBean.clientePortalInstance.observacoes}"
			rows="5" autoResize="false" 
			styleClass="width_17" disabled="#{!solicitacaoCadastroBean.flagNovoCliente}"/>
	</div>
</f:view>